from django.db import models
from staff_management.models import Employee
# Create your models here.
# 账号表
class User(models.Model):
    type = models.IntegerField('账号类型',null=False,default=2)
    emp_id = models.OneToOneField(Employee,on_delete=models.CASCADE,blank=False)
    username = models.CharField('账号名称',max_length=32,blank=False,unique=True)
    password = models.CharField('密码',max_length=256,blank=False)
    nores = models.CharField('备注',max_length=32)
    is_actuve = models.BooleanField('删除标记',null=False,default=1)
    last_login = models.DateTimeField('上一次登录时间',)
